import {defineStore} from "pinia";
import {ref} from 'vue'

export const TokenStore = defineStore('token',()=>{
    const token = ref('')

    const settoken = (newtoken)=>{
        token.value = newtoken
    }

    const renew = ()=>{
        token.value = ' '
    }

    return {token,settoken,renew}
})
